package com.chenyongjing.design.pattern.chain.auth.optimize;

import com.chenyongjing.design.pattern.chain.auth.Member;

/**
 * @Author chen
 * @Date 2022/11/17 22:22
 */
public abstract class Handler {
    protected Handler next;

    /**
     * 指向下一个处理节点
     * @param next
     */
    public void nextHandler(Handler next){
       this.next =next;
    }

    /**
     * 具体节点处理方法
     * @param member
     */
    public abstract void doHandler(Member member);


}
